#include "keyexchange_package.h"
#include "login_client.h"


void KeyExchangePackage::handle(boost::shared_ptr<IIoHandler> ioHandler)
{
	auto loginClient = boost::shared_dynamic_cast<LoginClient, IIoAttachment>(
		ioHandler->getAttachment());
	if(!loginClient)
	{
		ioHandler->close();
		return;
	}
	loginClient->handle(this, ioHandler);
}